package org.kineticsproject.visualizations;

import java.awt.Color;
import java.util.Date;

public class Crumb {
	  private String sLat;
	  private String sLon;
	  private String sAlt;
	  private Color	 color;
	  private double dSpeed;
	  private int    iWidth;
	  private int    iHeight;
	  private Date 	 trTime;
	  
	  public Date getTime()
	{
		return trTime;
	}

	public void setTime(Date trTime)
	{
		this.trTime = trTime;
	}

		public Crumb() 
		{
			sAlt 	= "0";
			sLat 	= "0";
			sLon 	= "0";
			color 	= Color.WHITE;
			dSpeed  = 0;
			iWidth  = 0;
			iHeight = 0;
			
		}
		
		public Crumb(String sLat, String sLon, String sAlt, Color color, double dSpeed, int iHeight, int iWidth, Date trTime)
		{
			this.sAlt 		= sAlt;
			this.sLat 		= sLat;
			this.sLon 		= sLon;
			this.color 		= color;
			this.dSpeed 	= dSpeed;
			this.iHeight 	= iHeight;
			this.iWidth 	= iWidth;
			this.trTime		= trTime;
		}


		public boolean comparePosition(Crumb c)
		{
			boolean result = true;
			
			if (this.sAlt.compareTo(c.getSAlt()) != 0)
				result = false;
			if (this.sLat.compareTo(c.getSLat()) != 0)
				result = false;
			if (this.sLon.compareTo(c.getSLon()) != 0)
				result = false;
			
			return(result);
		}
		
		public Color getColor() 
		{
			return color;
		}


		public void setColor(Color color) 
		{
			this.color = color;
		}


		public String getSAlt() 
		{
			return sAlt;
		}


		public void setSAlt(String alt) 
		{
			sAlt = alt;
		}


		public String getSLat() 
		{
			return sLat;
		}


		public void setSLat(String lat) 
		{
			sLat = lat;
		}


		public String getSLon() 
		{
			return sLon;
		}


		public void setSLon(String lon) 
		{
			sLon = lon;
		}

		public double getSpeed()
		{
			return dSpeed;
		}

		public void setSpeed(double speed)
		{
			dSpeed = speed;
		}

		public int getHeight()
		{
			return iHeight;
		}

		public void setHeight(int height)
		{
			iHeight = height;
		}

		public int getWidth()
		{
			return iWidth;
		}

		public void setWidth(int width)
		{
			iWidth = width;
		}
}
